
public class Main {
    public static void main(String[] args) {
        //电脑
        computer s = new computer();
        s.x=1;
        s.y=2;
        s.add();
        s.sub();
        s.mul();
        System.out.println("和为:"+s.sum);
        System.out.println("差为:"+s.DifValue);
        System.out.println("积为:"+s.product);

        //成绩
        grade student = new grade();
        student.chinese=80;
        student.maths=90;
        student.english=50;
        student.physics=70;
        student.chemistry=65;
        student.biont=65;
        student.sumgrade();
        student.avegrade();
        student.maxgrade();
        System.out.println("总成绩为:"+student.sum);
        System.out.println("平均成绩为:"+student.ave);
        System.out.println("最高成绩为:"+student.max);

    }
}